package com.ksd.modules.download.service;

import com.ksd.commons.IBaseService;
import com.ksd.modules.download.entity.AdminDownloadsCategory;
import com.ksd.modules.download.po.AdminDownloadsCategorySavePO;
import com.ksd.modules.download.po.AdminDownloadsCategorySearchPO;
import com.ksd.modules.download.vo.AdminDownloadsCategoryVo;

import java.util.List;

public interface IAdminDownloadsCategoryService extends IBaseService<AdminDownloadsCategory> {


    /**
     * 查询主板块
     * @return
     */
    List<AdminDownloadsCategoryVo> findAdminDownloadsCategoryRoot();

    /**
     * 查询板块信息
     * @param adminDownloadsCategorySearchPO
     * @return
     */
    List<AdminDownloadsCategoryVo> findAdminDownloadsCategory(AdminDownloadsCategorySearchPO adminDownloadsCategorySearchPO);

    /**
     * 删除板块
     * @param id
     * @return
     */
    boolean deleteAdminDownloadsCategoryById(Long id);

    /**
     * 获取板块明细
     * @param id
     * @return
     */
    AdminDownloadsCategoryVo getAdminDownloadsCategoryById(Long id);

    /**
     * 保存和修改板块
     * @param adminDownloadsCategorySavePO
     * @return
     */
    boolean saveUpdateAdminDownloadsCategory(AdminDownloadsCategorySavePO adminDownloadsCategorySavePO);
}
